package com.filex.ads.network;

import android.os.SystemClock;
import android.support.annotation.NonNull;
import com.filex.ads.common.AdFormat;
import org.json.JSONArray;
import java.io.Serializable;

public class AdResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @NonNull
    private final AdFormat mAdFormat;

    @NonNull
    private final String mPlacementId;

    private final JSONArray mJsonBody;

    private final long mTimestamp;

    public AdResponse(String placementId, AdFormat adFormat, JSONArray adJsonBody) {
        mPlacementId = placementId;
        mAdFormat = adFormat;
        mJsonBody = adJsonBody;
        mTimestamp = SystemClock.elapsedRealtime();
    }


    @NonNull
    public AdFormat getAdFormat() {
        return mAdFormat;
    }

    @NonNull
    public String getPlacementId() {
        return mPlacementId;
    }

    public JSONArray getJsonBody() {
        return mJsonBody;
    }

    public long getTimestamp() {
        return mTimestamp;
    }
}
